]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
3 years agostatus/network: Only show custom wired names
Georges Basile Stavracas Neto [Mon, 6 Feb 2023 11:22:48 +0000 (08:22 -0300)]
status/network: Only show custom wired names

Thanks to NetworkManager's connection name disambiguation, it's
pretty common for single wired connections to be named "Wired". This
is fine and what we want almost all times, but in the specific case
of quick settings, we already have a "Wired" string set as title of
the quick settings toggle, so having that as subtitle is reduntant.

Hide the subtitle label (by returning null) when the subtitle of
a wired network matches the title.

Fixes ab10b95d2dc6bda1fc0fcc3b451e535f2fc160a8
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6369

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2627>

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 6 Feb 2023 09:41:14 +0000 (09:41 +0000)]
Update Ukrainian translation

3 years agoUpdate Galician translation
Fran Dieguez [Sun, 5 Feb 2023 21:05:13 +0000 (21:05 +0000)]
Update Galician translation

3 years agoUpdate German translation
Tim Sabsch [Sun, 5 Feb 2023 19:50:18 +0000 (19:50 +0000)]
Update German translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Sun, 5 Feb 2023 09:08:39 +0000 (09:08 +0000)]
Update Indonesian translation

3 years agoUpdate Hebrew translation
Yosef Or Boczko [Sun, 5 Feb 2023 09:01:12 +0000 (09:01 +0000)]
Update Hebrew translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Sun, 5 Feb 2023 07:16:09 +0000 (07:16 +0000)]
Update Georgian translation

3 years agoworkspacesView: Remove obsolete cleanup
Florian Müllner [Sat, 4 Feb 2023 22:01:03 +0000 (23:01 +0100)]
workspacesView: Remove obsolete cleanup

Since commit a9f11b1f5a3e9, we no longer set up a later on
parent-set, so there's nothing to clean up.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2626>

3 years agostatus/network: Title mobile connections as "Mobile"
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 23:34:11 +0000 (20:34 -0300)]
status/network: Title mobile connections as "Mobile"

As per the latest mockups, modem network connections are labeled
"Mobile". Override _getDefaultName in NMModemToggle and always
return "Mobile" as title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Title bluetooth connections as "Tether"
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 23:31:58 +0000 (20:31 -0300)]
status/network: Title bluetooth connections as "Tether"

As per the latest mockups, Bluetooth network connections are simply
labeled "Tether". Override _getDefaultName in NMBluetoothToggle
and always return "Tether" as title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Improve network toggle subtitles
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 15:25:01 +0000 (12:25 -0300)]
status/network: Improve network toggle subtitles

If there is a single connection for a given NMToggle subclass,
use the connection name; otherwise, transform that into '%d
connected'. This is better than the current "Device (counter)"
template, e.g. "VPN (2)", which would give us a quick toggle
with:

   VPN
   VPN (2)

Change that to e.g.:

  VPN
  2 connected

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Set default name for toggle title
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 18:00:28 +0000 (15:00 -0300)]
status/network: Set default name for toggle title

Following the previous commits where we left the quick toggle title
open for the new title scheme, set the titles for all network pills
to what currently is the "default" name.

That means, we pull the device name from Network Manager for devices,
through the disambiguate function, and hardcode 'VPN' for VPN
connections.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Bind subtitle
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 17:57:20 +0000 (14:57 -0300)]
status/network: Bind subtitle

Instead of map the currently active items - for whatever they are -
into the quick toggle title, bind it to the subtitle.

This leaves room for setting static titles for device-backed
networks, such as Wi-Fi, Wired, Bluetooth, etc.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/powerProfiles: Set profile name as subtitle
Georges Basile Stavracas Neto [Tue, 31 Jan 2023 17:38:39 +0000 (14:38 -0300)]
status/powerProfiles: Set profile name as subtitle

Just like with network names, set the name of the power profile as
the subtitle of the quick settings pill. This allows more of the
power profile name to be visible, and reduces chances of ellipsing
the name.

Rename the 'title' variable to 'name', to be more semantic and
better represent what it is now.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5770
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostyle: Increase quick items' height
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 13:01:34 +0000 (10:01 -0300)]
style: Increase quick items' height

As per design feedback, increase it to 48px height, so as to give
items more room for the subtitles.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agoquickSettings: Add 'subtitle' property
Georges Basile Stavracas Neto [Mon, 30 Jan 2023 20:57:42 +0000 (17:57 -0300)]
quickSettings: Add 'subtitle' property

Add a subtitle label to QuickToggle, with a less prominent font.
Make the subtitle invisible when no text is present.

This new property will be used by next commits to implement quick
settings with a static title, and a changing subtitle.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agoquickSettings: Rename 'label' property to 'title'
Georges Basile Stavracas Neto [Mon, 30 Jan 2023 20:32:39 +0000 (17:32 -0300)]
quickSettings: Rename 'label' property to 'title'

We'll soon add a subtitle, so rename the label property to something
that is a bit more semantic.Add a warning when trying to set the old
'label' property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Sat, 4 Feb 2023 05:31:47 +0000 (05:31 +0000)]
Update Indonesian translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Sat, 4 Feb 2023 05:23:34 +0000 (05:23 +0000)]
Update Indonesian translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 3 Feb 2023 19:39:15 +0000 (19:39 +0000)]
Update Ukrainian translation

3 years agoextension-tool: Fix falling back to GSettings
Florian Müllner [Tue, 22 Nov 2022 18:40:37 +0000 (19:40 +0100)]
extension-tool: Fix falling back to GSettings

When we switched the tool to the public Extensions service, the
fallback to GSettings broke in the case GNOME is installed but
not running (because the service can be autostarted, albeit it'll
fail later).

Fix this by also falling back when we don't get a response from
gnome-shell.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6127

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2552>

3 years agocroco: Use g_string_free() return value
Florian Müllner [Thu, 2 Feb 2023 22:37:21 +0000 (23:37 +0100)]
croco: Use g_string_free() return value

glib now warns if the return value is not used, so use the API as
intended instead of assigning the character data separately before
freeing the GString.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2625>

3 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 3 Feb 2023 13:23:29 +0000 (13:23 +0000)]
Update Turkish translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Fri, 3 Feb 2023 04:58:51 +0000 (04:58 +0000)]
Update Georgian translation

3 years agost/texture-cache: Port to StIconTheme
Florian Müllner [Thu, 26 Jan 2023 02:36:03 +0000 (03:36 +0100)]
st/texture-cache: Port to StIconTheme

It's finally time to pull the switch and replace GtkIconTheme with
out modified copy. This removes another Gtk dependency that ties
us to the old Gtk3.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Stop using GdkRGBA for coloring symbolics
Florian Müllner [Wed, 25 Jan 2023 18:29:25 +0000 (19:29 +0100)]
st/icon-theme: Stop using GdkRGBA for coloring symbolics

We already have ClutterColor to represent a color, and StIconColors
to hold color information for symbolics from CSS. Now that we moved
GtkIconTheme in-tree, we can make use of those types instead of
translating back and forth from GdkRGBA.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Change namespace to ST
Florian Müllner [Thu, 26 Jan 2023 02:36:03 +0000 (03:36 +0100)]
st/icon-theme: Change namespace to ST

We are still linking to GTK, and extensions may import GTK for
whatever reason, so avoid conflicts by moving the copied GTK
code into our namespace.

With that and the previous adjustments, the new code is now
finally buildable.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Start using g_autofree
Florian Müllner [Wed, 1 Feb 2023 16:46:58 +0000 (17:46 +0100)]
st/icon-theme: Start using g_autofree

We don't have to refrain from g_auto for compatibility reasons,
so start using it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace slice allocator
Florian Müllner [Wed, 25 Jan 2023 17:36:08 +0000 (18:36 +0100)]
st/icon-theme: Replace slice allocator

Its use has been discouraged for years, and glib recently deprecated
it officially (while turning it around a small wrapper around malloc).

Don't let it sneak back in through some old GTK3 code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace g_get_current_time ()
Florian Müllner [Wed, 1 Feb 2023 15:25:10 +0000 (16:25 +0100)]
st/icon-theme: Replace g_get_current_time ()

GTimeVal has been deprecated a while ago, don't let it sneak back
in via some old GTK code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Use standard GObject macros
Florian Müllner [Wed, 1 Feb 2023 15:10:28 +0000 (16:10 +0100)]
st/icon-theme: Use standard GObject macros

The GTK code predates the G_DECLARE_*() macros, so it's under- standable
that it still does all the boilerplate manually. We
don't have that excuse in 2023, so move the the standard macros.

There is no reason for GtkIconTheme to be derivable, and as that
means that the instance struct itself is private, stop adding
separate private instance data.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace GTK's custom i18n support
Florian Müllner [Wed, 1 Feb 2023 14:24:09 +0000 (15:24 +0100)]
st/icon-theme: Replace GTK's custom i18n support

GTK uses its own private i18n header, which most notably defines
an I_() macro for interning static strings. That may be a worthwhile
idea for the entire codebase, but as it's out of scope for this
change set, just use the standard i18n support from glib for now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove GdkScreen/GtkStyleContext integration
Florian Müllner [Wed, 1 Feb 2023 14:36:19 +0000 (15:36 +0100)]
st/icon-theme: Remove GdkScreen/GtkStyleContext integration

Those are GTK internals that don't apply to us. Without the distinct
"screen's default icon theme", we also don't need custom theme support,
and can just always track the theme from StSettings.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove deprecated API
Florian Müllner [Wed, 1 Feb 2023 13:42:38 +0000 (14:42 +0100)]
st/icon-theme: Remove deprecated API

We aren't subject to GTK3's API stability, so there's no reason
for dragging old stuff along.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace GTK debug code
Florian Müllner [Thu, 26 Jan 2023 02:36:03 +0000 (03:36 +0100)]
st/icon-theme: Replace GTK debug code

We won't copy GTK's debug logging, so either remove messages or
turn them into reglar g_debug() calls.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove Win32 compatibility
Florian Müllner [Thu, 26 Jan 2023 00:41:32 +0000 (01:41 +0100)]
st/icon-theme: Remove Win32 compatibility

gnome-shell does not run on Windows, and if someone was crazy enough
to try to make it work, the icon theme support would be the least
of their worries.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Standard types
Florian Müllner [Thu, 26 Jan 2023 02:32:52 +0000 (03:32 +0100)]
st/icon-theme: Standard types

The GTK code dates back to a time when "gchar" and friends were
still considered a good idea. Replace them with standard types
except for "guint" (I'm lazy) and GtkIconCache code that relies
on glib's byte order macros.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Use regular idle source over gdk_threads
Florian Müllner [Wed, 1 Feb 2023 15:59:38 +0000 (16:59 +0100)]
st/icon-theme: Use regular idle source over gdk_threads

The shell code isn't threaded, so there's no reason for pulling
in Gdk's thread support.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Define default icon theme
Florian Müllner [Wed, 1 Feb 2023 15:57:35 +0000 (16:57 +0100)]
st/icon-theme: Define default icon theme

In GTK, the value comes from another private header. It doesn't
make sense to copy it in its entirety, just define the one value
we actually need ourselves.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove unused header
Florian Müllner [Wed, 1 Feb 2023 20:32:46 +0000 (21:32 +0100)]
st/icon-theme: Remove unused header

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Merge private header
Florian Müllner [Wed, 1 Feb 2023 12:21:08 +0000 (13:21 +0100)]
st/icon-theme: Merge private header

GtkIconTheme's headers are split between a public and a private
one. We won't expose the icon theme API at all, nor do we need
to access anything beyond what the texture cache is currently
using, so merge the private header into the implementation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Copy GdkPixbuf utility code
Florian Müllner [Wed, 1 Feb 2023 14:19:47 +0000 (15:19 +0100)]
st/icon-theme: Copy GdkPixbuf utility code

GTK includes a couple of shared private GdkPixbuf utilities
functions. We don't have a need for sharing that code, just
for the bits that are used by the IconTheme code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Copy GTK3 code in-tree
Florian Müllner [Tue, 10 Jan 2023 19:40:21 +0000 (20:40 +0100)]
st/icon-theme: Copy GTK3 code in-tree

GTK4 changed icon loading significantly, it is now closely tied
to snapshots and paintables. This makes a port highly unrealistic,
so to avoid staying stuck on GTK3 forever, copy the relevant code
into the tree.

The code is unmodified except for the include names and replacing
some stray tab indentation. It is still full of GTK internals, so
it will take a while before we can actually build it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/texture-cache: Remove unused struct member
Florian Müllner [Wed, 4 Jan 2023 13:01:56 +0000 (14:01 +0100)]
st/texture-cache: Remove unused struct member

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agoshell/window-preview-layout: Add precondition checks
Florian Müllner [Thu, 2 Feb 2023 13:56:45 +0000 (14:56 +0100)]
shell/window-preview-layout: Add precondition checks

It's good practice to guard public API against programmer errors,
so do that.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6351

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2622>

3 years agoshell/window-preview-layout: Mark return value as nullable
Florian Müllner [Thu, 2 Feb 2023 13:55:37 +0000 (14:55 +0100)]
shell/window-preview-layout: Mark return value as nullable

The function may return null, so we should mark it as such, even
if that information is currently unused.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6351

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2622>

3 years agoshellMountOperation: Don't read unavailable desktop file
Balló György [Thu, 2 Feb 2023 07:26:20 +0000 (07:26 +0000)]
shellMountOperation: Don't read unavailable desktop file

If gnome-disk-utility is not installed on the system, its desktop file is
unavailable, so we can't get the application's name. In this case hide
the launcher button.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2621>

3 years agoUpdate Galician translation
Fran Dieguez [Wed, 1 Feb 2023 18:49:24 +0000 (18:49 +0000)]
Update Galician translation

3 years agoinputMethod: Make set_surrounding() send also empty string
Takao Fujiwara [Tue, 31 Jan 2023 08:42:23 +0000 (17:42 +0900)]
inputMethod: Make set_surrounding() send also empty string

Empty surrounding text values needs to be sent to IBus engines
so that the engines know the focus is changed and the values are
updated.
Also InputMethod can forward the "require-surrounding-text" signal
from IBus engine to mutter.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5895
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2496>

3 years agoappDisplay: Simplify loading Folder apps a bit
Jonas Dreßler [Fri, 24 Jun 2022 17:25:24 +0000 (19:25 +0200)]
appDisplay: Simplify loading Folder apps a bit

Instead of plugging into _redisplay(), we can use _loadApps() for this.
It's actually exactly what _loadApps() is meant for...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoappDisplay: Move findBestPageToAppend() behavior to IconGrid
Jonas Dreßler [Fri, 24 Jun 2022 14:02:54 +0000 (16:02 +0200)]
appDisplay: Move findBestPageToAppend() behavior to IconGrid

This behavior makes more sense to have in the iconGrid itself: When a
page is filled up with items, the new item should never go to the start
of the next page, but always to next empty slot.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoappDisplay: Fix multi-page dragging behavior in folders
Jonas Dreßler [Fri, 24 Jun 2022 13:17:51 +0000 (15:17 +0200)]
appDisplay: Fix multi-page dragging behavior in folders

Folders reflow across pages because they don't set
allow_incomplete_pages to true. This means we want the nudging of items
to happen slightly differently when dragging an item across pages:

- When dragging from lower page index to a higher one, always reflow
towards the start of the grid (because there's now an empty slot on the
old page and items on the new page will force-reflow towards that)
- When dragging from a higher page index to a lower one, we can reflow to
the end as we usually do

To archive this, factor out the selection of "reflow direction" into a
separate variable that always defaults to "end" (because empty space is
always at the end of the grid). Set it to "start" when the item created an
empty slot on the current page or (and this is new:) on a previous page in
the folder case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoiconGrid: Also consider left/right empty space as drop targets
Jonas Dreßler [Fri, 24 Jun 2022 11:50:42 +0000 (13:50 +0200)]
iconGrid: Also consider left/right empty space as drop targets

Make it a bit easier to drag items to the start of pages by also taking
the left and right empty space into account, instead of considering it
an invalid target.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoappDisplay: Consider drag events during page-switching as invalid
Jonas Dreßler [Fri, 24 Jun 2022 11:15:41 +0000 (13:15 +0200)]
appDisplay: Consider drag events during page-switching as invalid

While there's an ongoing animation to switch pages, we should ignore all
drag events as those will end up moving the drag item to an unwanted
position.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoappDisplay: Consider drop targets on !currentPage as invalid
Jonas Dreßler [Fri, 24 Jun 2022 11:11:31 +0000 (13:11 +0200)]
appDisplay: Consider drop targets on !currentPage as invalid

The iconGrid's getDropTarget() API supports dropping items to adjacent
pages just fine, but in the AppDisplay, we clip the grid and don't show
those adjacent pages. That doesn't stop getDropTarget() from picking
drop targets which are on adjacent pages though, so we need to filter
those out in the layer above.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoiconGrid: Return page and position for drop targets instead of items
Jonas Dreßler [Fri, 24 Jun 2022 11:01:16 +0000 (13:01 +0200)]
iconGrid: Return page and position for drop targets instead of items

Returning a page and a position for the drop target seems more
straightforward than returning an actual grid item in getDropTarget().

With the next commit, this will allow us to throw away drop targets that
are not on the current page.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoappDisplay: Get linear index using item instead of page and position
Jonas Dreßler [Fri, 24 Jun 2022 08:38:44 +0000 (10:38 +0200)]
appDisplay: Get linear index using item instead of page and position

_getLinearPosition() is a function that converts a page and position
index to the "accumulated" index that includes all pages before the
page. The function is used by _addItem() and _moveItem() for getting the
new index of an item inside the _orderedItems array.

Now when passing -1 as position to _addItem() or _moveItem(), this means
the item should be appended to the page. Right now _getLinearPosition()
returns the last item index on the page when passed -1, inserting the
item into _orderedItems at this index will actually not append it, but
insert it between the second last and last item.

To fix it, let's make the whole thing more robust by explicitly passing
an item to _getLinearPosition(). This means we simply no longer have to
assume what "-1" means. Moving the call to _getLinearPosition() to
happen after addItem() and moveItem() ensures that the new item position
is used and not the old one.

This fixes issues where the _orderedItems array gets out of order when
moving or adding items.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoci: Update base image
Carlos Garnacho [Tue, 31 Jan 2023 11:54:19 +0000 (12:54 +0100)]
ci: Update base image

Mutter main updated its image for a glib dependency bump. Update
gnome-shell CI too.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2618>

3 years agowindowManager: Drop grab-op-begin signal connection
Carlos Garnacho [Mon, 31 Oct 2022 12:16:17 +0000 (13:16 +0100)]
windowManager: Drop grab-op-begin signal connection

This is done just to "reset" the gesture when a grab operation
begins. With grab ops being based on ClutterGrab now, the gesture
will be implicitly reset when these happen. This is unnecessary now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agoswipeTracker: Drop grab-op-begin signal connection
Carlos Garnacho [Mon, 31 Oct 2022 12:15:32 +0000 (13:15 +0100)]
swipeTracker: Drop grab-op-begin signal connection

This is done just to "reset" the gesture when a grab operation
begins. With grab ops being based on ClutterGrab now, the gesture
will be implicitly reset when these happen. This is unnecessary now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agoedgeDragAction: Drop grab-op-begin signal connection
Carlos Garnacho [Mon, 31 Oct 2022 12:14:10 +0000 (13:14 +0100)]
edgeDragAction: Drop grab-op-begin signal connection

This is done just to "reset" the gesture when a grab operation
begins. With grab ops being based on ClutterGrab now, the gesture
will be implicitly reset when these happen. This is unnecessary now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agobackgroundMenu: Drop grab-op-begin signal connection
Carlos Garnacho [Mon, 31 Oct 2022 12:11:21 +0000 (13:11 +0100)]
backgroundMenu: Drop grab-op-begin signal connection

This is done just to "reset" the click action when a grab operation
begins. With grab ops being based on ClutterGrab now, the action
will be implicitly reset when these happen. This is unnecessary now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agopanel,windowMenu: Update to meta_window_begin_grab_op() API change
Carlos Garnacho [Fri, 21 Oct 2022 18:21:13 +0000 (20:21 +0200)]
panel,windowMenu: Update to meta_window_begin_grab_op() API change

Add device/sequence parameters.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agowindowMenu: Update for removal of frame_action argument
Carlos Garnacho [Thu, 29 Sep 2022 17:21:29 +0000 (19:21 +0200)]
windowMenu: Update for removal of frame_action argument

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agopanel: Update for removal of frame_action argument
Carlos Garnacho [Thu, 29 Sep 2022 17:21:05 +0000 (19:21 +0200)]
panel: Update for removal of frame_action argument

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agopanel: Use MetaWindow API to begin grab operation on window
Carlos Garnacho [Thu, 29 Sep 2022 16:53:45 +0000 (18:53 +0200)]
panel: Use MetaWindow API to begin grab operation on window

Move away from MetaDisplay API.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agooverview: Port to Meta.Display.is_grabbed()
Carlos Garnacho [Thu, 29 Sep 2022 12:23:31 +0000 (14:23 +0200)]
overview: Port to Meta.Display.is_grabbed()

The get_grab_op() method is disappearing, replaced by this
new method.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agoRevert "windowMenu: Do actions requiring grab once ungrabbed"
Carlos Garnacho [Tue, 17 Jan 2023 17:40:10 +0000 (18:40 +0100)]
Revert "windowMenu: Do actions requiring grab once ungrabbed"

This reverts commit 2b3ab3ececd2b70023547552b1acf84cbc4fecb1.

Since the window menu no longer uses a MetaDisplay grab, but directly
a ClutterGrab, this is ineffective. But also, grabs are stackable, so
it's fine to push the window operation grab first and then dismiss the
window menu grab, even when MetaDisplay grabs get ported to using
ClutterGrab underneath. We now can just grab right away, so do that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

3 years agoUpdate Galician translation
Fran Dieguez [Mon, 30 Jan 2023 08:07:15 +0000 (08:07 +0000)]
Update Galician translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Mon, 30 Jan 2023 04:57:03 +0000 (04:57 +0000)]
Update Indonesian translation

3 years agoUpdate Occitan translation
Quentin PAGÈS [Sun, 29 Jan 2023 14:58:21 +0000 (14:58 +0000)]
Update Occitan translation

3 years agoUpdate Catalan translation
Jordi Mas [Sat, 28 Jan 2023 06:17:31 +0000 (07:17 +0100)]
Update Catalan translation

3 years agoschemas: Consistently use child schemas
Florian Müllner [Fri, 27 Jan 2023 20:06:28 +0000 (21:06 +0100)]
schemas: Consistently use child schemas

Currently only the org.gnome.shell.keybindings schema is marked
as child schema. There's no harm with that, it's just nice to be
consistent, and having schemas show up in `gsettings list-children`
is a nice, touch.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2617>

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 27 Jan 2023 20:43:04 +0000 (20:43 +0000)]
Update Ukrainian translation

3 years agosubprojects/gvc: Update to latest master
Florian Müllner [Mon, 19 Dec 2022 17:11:34 +0000 (18:11 +0100)]
subprojects/gvc: Update to latest master

Pull in a couple of bug fixes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2616>

3 years agoRevert "status/volume: Clear device menus when unsetting stream"
Florian Müllner [Mon, 12 Dec 2022 17:28:04 +0000 (18:28 +0100)]
Revert "status/volume: Clear device menus when unsetting stream"

Device additions/removals are tracked by GvcMixerControl, which
doesn't change when unsetting the stream. So clearing the menu
manually was a workaround, not a fix.

It's also worth noting that I failed to reproduce the original
issue again, so it's possible that we were working around a
pipewire bug that has since been fixed.

This reverts commit 1b62b7ea0a8aff38ef8c6873cb8b7651abe24044.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2616>

3 years agoUpdate Portuguese translation
Hugo Carvalho [Thu, 26 Jan 2023 15:19:06 +0000 (15:19 +0000)]
Update Portuguese translation

3 years agoosk-layouts: Replace "SS" extra key with "ẞ"
Florian Müllner [Tue, 24 Jan 2023 16:49:24 +0000 (17:49 +0100)]
osk-layouts: Replace "SS" extra key with "ẞ"

The on-screen keyboard only handles a single keyval per key, so the
current upper-case version of the German "ß" ends up as "S" instead
of the expected "SS".

It is possible to change the keyboard code to emulate multiple key
presses/releases for that particular case, but then luckily a proper
upper-case form exists nowadays: "ẞ".

That seems more appropriate for a single key than a dedicated "SS"
key, so replace it in all layouts that include it. Anybody who prefers
the traditional "SS" can easily tap "S" twice.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2612>

3 years agoUpdate Belarusian translation
Vasil Pupkin [Wed, 25 Jan 2023 09:53:05 +0000 (09:53 +0000)]
Update Belarusian translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Wed, 25 Jan 2023 06:57:50 +0000 (06:57 +0000)]
Update Georgian translation

3 years agoUpdate Turkish translation
Emin Tufan Çetin [Tue, 24 Jan 2023 23:44:55 +0000 (23:44 +0000)]
Update Turkish translation

3 years agostatus/network: Work around xgettext ignoring translated strings
Heiko Hösch [Wed, 21 Dec 2022 08:13:31 +0000 (08:13 +0000)]
status/network: Work around xgettext ignoring translated strings

xgettext quits parsing, when the "<"-operator follows the "++"-operator
directly.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5820
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2613>

3 years agoscreenShield: Add API to add/remove credential managers
Alessandro Bono [Wed, 3 Aug 2022 13:43:51 +0000 (15:43 +0200)]
screenShield: Add API to add/remove credential managers

Extensions that provide a credential manager can (un)register themself
so that the screen shield gets activated right after a user is
authenticated.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2399>

3 years agogdmUtil: Add API to add/remove credential managers
Alessandro Bono [Wed, 3 Aug 2022 13:34:10 +0000 (15:34 +0200)]
gdmUtil: Add API to add/remove credential managers

Extensions don't need to poke at the internal this._credentialManagers
variable in order to add their own credential manager.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2399>

3 years agogdmUtil: Collect services that determine the username in one place
Alessandro Bono [Wed, 3 Aug 2022 13:08:07 +0000 (15:08 +0200)]
gdmUtil: Collect services that determine the username in one place

Doing so, extensions don't need to reimplement entirely the
AuthPrompt.reset() function just for adding their own credential
service in the foreground service check.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2399>

3 years agocredentialManager: Remove unused parameter
Alessandro Bono [Mon, 1 Aug 2022 13:43:27 +0000 (15:43 +0200)]
credentialManager: Remove unused parameter

Since 26235bbe5433c48b81bd3917aaf9ef14ff1929b2 is unused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2399>

3 years agotools: Drop gnome-shell-overrides-migration.sh
Philip Withnall [Mon, 23 Jan 2023 16:38:36 +0000 (16:38 +0000)]
tools: Drop gnome-shell-overrides-migration.sh

The tool was added in 2018 to migrate to per-desktop overrides from the
old overrides system.

5 years later, everyone who’s going to migrate probably has migrated, so
we can delete the script and remove a process running on every login.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2611>

3 years agoUpdate Turkish translation
Sabri Ünal [Sun, 22 Jan 2023 19:14:47 +0000 (19:14 +0000)]
Update Turkish translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Fri, 20 Jan 2023 16:47:30 +0000 (16:47 +0000)]
Update Georgian translation

3 years agoUpdate Belarusian translation
Vasil Pupkin [Fri, 20 Jan 2023 15:57:31 +0000 (15:57 +0000)]
Update Belarusian translation

3 years agoUpdate Friulian translation
Fabio Tomat [Wed, 18 Jan 2023 22:16:31 +0000 (22:16 +0000)]
Update Friulian translation

3 years agodash: Connect before destroying
Alessandro Bono [Sat, 14 Jan 2023 16:00:42 +0000 (17:00 +0100)]
dash: Connect before destroying

Since commit 7bd98f3f5fb7e0d1220646b8a4ee7073534a8e8f animateOutAndDestroy() destroys
the placeholder right away when animations are disabled. Connect to the destroy signal
before calling the function.

This fixes the following error:
Gjs-CRITICAL **: 16:51:35.195: Object .Gjs_ui_dash_DragPlaceholderItem (0x55b9a946da20),
has been already disposed — impossible to connect to any signal on it. This might be
caused by the object having been destroyed from C code using something such as destroy(),
dispose(), or remove() vfuncs.
== Stack trace for context 0x55b9a70d08f0 ==
 #0   7ffe161bd070 b   resource:///org/gnome/shell/ui/dash.js:835 (df3d61d32e0 @ 98)
 #1   7ffe161bd170 b   resource:///org/gnome/shell/ui/dash.js:901 (df3d61d33d0 @ 779)
 #2   7ffe161bd290 b   resource:///org/gnome/shell/ui/dnd.js:562 (3d4da0cfd420 @ 909)
 #3   7ffe161bd360 b   self-hosted:1115 (3d4da0c7ef10 @ 407)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2604>

3 years agoaccessDialog: Don't add an empty body
Alessandro Bono [Mon, 16 Jan 2023 20:41:24 +0000 (21:41 +0100)]
accessDialog: Don't add an empty body

According to the org.freedesktop.impl.portal.Access documentation
the body may be an empty string[1]. Take into account this case.

[1] https://github.com/flatpak/xdg-desktop-portal/blob/d7cfc16a6dc11cb925116fe36c5ee23e7075849c/data/org.freedesktop.impl.portal.Access.xml#L38

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2607>

3 years agodata: Update page icons
Jakub Steiner [Fri, 6 Jan 2023 16:08:32 +0000 (17:08 +0100)]
data: Update page icons

- The narrow page icons have a 'stretched font' aesthetic about them. Update them to use the
  old square-ish glyph.
- Similar style updates happened in Software (banner pager).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2596>

3 years agoappDisplay: Don't assume this._placeholder always exists
Alessandro Bono [Sun, 15 Jan 2023 15:34:38 +0000 (16:34 +0100)]
appDisplay: Don't assume this._placeholder always exists

Dropping a icon from the dash to the application grid will set this._placeholder
to null. However the AppIcon is still used to represent the application in the
application grid. If we click on it we emit a pressed event. Stop assuming
that this._placeholder is still valid in the callback, use the icon parameter
instead.

This fixes the following error:
```
Gjs-CRITICAL **: 18:22:39.003: JS ERROR: TypeError: this._placeholder is null
_ensurePlaceholder/<@resource:///org/gnome/shell/ui/appDisplay.js:1477:17
vfunc_button_press_event@resource:///org/gnome/shell/ui/appDisplay.js:3121:27
```

Fixes: 6fc93b78bc54763c0876951f2425fcfd96f61f00
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6317
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2606>

3 years agoUpdate British English translation
Bruce Cowan [Sun, 15 Jan 2023 11:11:15 +0000 (11:11 +0000)]
Update British English translation

(cherry picked from commit a1b83429777dda5b176e77be377e2715369a0c95)

3 years agoquickSettings: Add separator before the "Power Settings" entry
sunflowerskater [Fri, 13 Jan 2023 22:56:44 +0000 (19:56 -0300)]
quickSettings: Add separator before the "Power Settings" entry

There is no separator before the "Power Settings" entry in the "Power Profiles" menu,
unlike all other quick settings menus.

Add that separator for consistency.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2559#note_1641102

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2602>

3 years agoquickSettings: Add a "Power Settings" entry to the Power Profiles submenu
sunflowerskater [Fri, 13 Jan 2023 16:09:25 +0000 (13:09 -0300)]
quickSettings: Add a "Power Settings" entry to the Power Profiles submenu

This change adds the shortcut so it can be accessible by devices without a battery and to keep consistency with other submenus like the Wi-Fi submenu and the upcoming Bluetooth submenu (Teams/Design/os-mockups#178).

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6111

Part of <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2559>

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2559>

3 years agokeyboard: Add "Keyboard Settings" menu entry
sunflowerskater [Thu, 12 Jan 2023 01:38:07 +0000 (22:38 -0300)]
keyboard: Add "Keyboard Settings" menu entry

The keyboard popover doesn't have a shortcut to open the Keyboard panel from the Settings app.

This commit adds this menu entry to improve usability.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2600>

3 years agoUpdate Turkish translation
Sabri Ünal [Wed, 11 Jan 2023 18:49:07 +0000 (18:49 +0000)]
Update Turkish translation